package vip.bblog.oauth2.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.bblog.oauth2.entity.OauthClientDetails;
import vip.bblog.common.utils.BaseResult;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yuyong
 * @since 2019-05-15
 */
public interface OauthClientDetailsService extends IService<OauthClientDetails> {

    /**
     * 增加客户端
     *
     * @param clientDetails
     * @return
     */
    BaseResult<Object> insert(OauthClientDetails clientDetails);

    /**
     * 根据clientId删除
     *
     * @param clientId
     * @return
     */
    BaseResult<Object> deleteByClientId(String clientId);

    /**
     * 根据clientId更新信息
     *
     * @param clientDetails
     * @return
     */
    BaseResult<Object> updateByClientId(OauthClientDetails clientDetails);

    /**
     * 模糊分页查询
     * @param page
     * @param clientDetails
     * @return
     */
    BaseResult<Object> selectPageByExample(Page<OauthClientDetails> page, OauthClientDetails clientDetails);
}
